<?php 

function yblueprint_page_index() {
	$content = '';
  $num_rows = FALSE;
  $result = pager_query(db_rewrite_sql("SELECT n.nid FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.created DESC"), variable_get('default_nodes_main', 10));
  while ($row = db_fetch_object($result)) {
    $node = node_load(array('nid' => $row->nid));
    $num_rows = TRUE;
  }
  $content .= theme('bp_page');
  $page = theme('bp_index', $content);
	return _yblueprint_render($page);
}